//
//  MeLogin.m
//  豆瓣YHY
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "MeLogin.h"

@implementation MeLogin
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self zz];
    }
    return self;
}
- (void)zz{
    self.backgroundColor = [UIColor yellowColor];
    
    //用户名
    self.labelname = [[UILabel alloc]initWithFrame:CGRectMake(30, 90, 80, 40)];
   // self.labelname.backgroundColor = [UIColor yellowColor];
    self.labelname.text = @"用户名";
    [self addSubview:self.labelname];
    
    //用户textField
    self.textfieldname = [[UITextField alloc]initWithFrame:CGRectMake(120, 90, 180, 40)];
   // self.textfieldname.backgroundColor = [UIColor yellowColor];
    self.textfieldname.borderStyle =  UITextBorderStyleRoundedRect;
    self.textfieldname.placeholder = @"请输入用户名";
    [self addSubview:self.textfieldname];
    
    //密码
    self.labelpassword = [[UILabel alloc]initWithFrame:CGRectMake(30, 140, 80, 40)];
    //self.labelpassword.backgroundColor = [UIColor yellowColor];
    self.labelpassword.text = @"密码";
    [self addSubview:self.labelpassword];
    
    //密码textFeld
    self.textfieldpassword = [[UITextField alloc]initWithFrame:CGRectMake(120, 140, 100, 40)];
    self.textfieldpassword.borderStyle =  UITextBorderStyleRoundedRect;
    self.textfieldpassword.placeholder = @"请输入密码";
    [self addSubview:self.textfieldpassword];
    
    //确认密码
    self.labelsurepassword = [[UILabel alloc]initWithFrame:CGRectMake(30, 190, 80, 40)];
   // self.labelsurepassword.backgroundColor = [UIColor yellowColor];
    self.labelsurepassword.text = @"确认密码";
    [self addSubview:self.labelsurepassword];
    
    //确认密码textField
    self.textfieldsurepassword = [[UITextField alloc]initWithFrame:CGRectMake(120, 190, 100, 40)];
    self.textfieldsurepassword.borderStyle =  UITextBorderStyleRoundedRect;
    self.textfieldsurepassword.placeholder = @"再次输入密码";
    [self addSubview:self.textfieldsurepassword];
    
    //邮箱
    self.labelemil = [[UILabel alloc]initWithFrame:CGRectMake(30, 240, 80, 40)];
   // self.labelemil.backgroundColor = [UIColor yellowColor];
    self.labelemil.text = @"邮箱";
    [self addSubview:self.labelemil];
    //邮箱
    
    self.emil = [[UITextField alloc]initWithFrame:CGRectMake(120, 240, 100, 40)];
    self.emil.borderStyle = UITextBorderStyleRoundedRect;
    self.emil.placeholder = @"请输入邮箱";
    [self addSubview:self.emil];
    
    //联系方式
    self.textfieldphone = [[UITextField alloc]initWithFrame:CGRectMake(120, 290, 100, 40)];
    self.textfieldphone.borderStyle = UITextBorderStyleRoundedRect;
    self.textfieldphone.placeholder =@"联系方式";
    [self addSubview:self.textfieldphone];
    
    self.labelphone  =[[UILabel alloc]initWithFrame:CGRectMake(30, 290, 80, 40)];
    self.labelphone.text = @"联系方式";
    [self addSubview:self.labelphone];
    
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
